#ifndef __LINKED_QUEUE_H__
#define __LINKED_QUEUE_H__

#include "double_linkedlist.h"

typedef dlisthead_t lqueue_t;

extern int lqueue_init(lqueue_t **s, int size);

extern int lqueue_empty(const lqueue_t *s);

extern int lqueue_push(lqueue_t *s, const void *data);

extern int lqueue_pop(lqueue_t *s, void *data);

extern void lqueue_destroy(lqueue_t **s);

#endif
